`timescale 1ns/1ps
module TimeAndDayCompareBox (TimeA, day, PMFF, AndOutput);

input [11:0] TimeA; //Time is 12bits
input [2:0] day;
input [1:0] PMFF;


output AndOutput;

wire [11:0] TimeA;
wire [2:0] day;
wire [1:0] PMFF;
wire TimeCompareOutput;
wire DayCompareOutput;
wire AndOutput;

TimeCompare boxie(.Ttime(TimeA), .pass(TimeCompareOutput));

CompareCurrentDay pink(.PM(PMFF), .day(Day), .access(DayCompareOutput));


and and1(AndOutput, TimeCompareOutput, DayCompareOutput);
 
 
endmodule; 






















